<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<title></title>
	<%@include file="/WEB-INF/base.jspf"%>
	<script src="/js/font_620062_lpu7bp3btmcjif6r.js"></script>
	<style>
    .icon {
       width: 1em; height: 1em;
       vertical-align: -0.15em;
       fill: currentColor;
       overflow: hidden;
    }
    .btn-c-backToStore {
    	border:1px solid rgb(67, 185, 19);
    	border-radius: 12px;
    	color: rgb(67, 185, 19);
    	display:inline-block;
    	padding: 6px 20px;
    }
	</style>
</head>
	<body style="height:100vh;display:flex;align-items:center;flex-direction:column;justify-content:center;position: relative;">
	<div style="display:flex;align-items:center;top:15%;position: absolute;flex-direction:column;margin-bottom:12px;">
		<svg class="icon" aria-hidden="true" style="vertical-align: top;width:70px;height:70px;">
    		<use xlink:href="#icon-right"></use>
		</svg>
		<h2 style="margin-left:12px;color: rgb(67, 185, 19);margin-top:12px;">支付成功!</h2>
	</div>
	<div style="text-align: center;">
		<!-- <h4>国际彩票娱乐城</h4> -->
		<h1 style="margin-top:16px;">￥ 99.78 元</h1>
	</div>
	<div style="text-align: center;position: absolute;bottom:20%;"><span class="btn-c-backToStore">返回首页</span></div>
<script>
$(function(){
	payNotifys();
});

function getUrlParam(name){
	var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)","i"); 
	var r =  window.location.search.substr(1).match(reg);
	var strValue = "";
	if (r!=null){
	   strValue= unescape(r[2]);
	}
   return strValue;
}
function payNotifys(){
	var a = ["P_UserId","P_OrderId","P_CardId","P_CardPass","P_FaceValue","P_ChannelId","P_PayMoney","P_Subject","P_Price","P_Quantity",
		"P_Description","P_Notic","P_ErrCode","P_PostKey","P_ErrMsg"]
	var b = [];
	for(var i in a){
		 var res = getUrlParam(a[i]);
		  b[i]=res;
	}
	 $.ajax({
		 url:"/pay/payNotifys.do",
		  data:{
			   "userId":b[0] , 
			   "orderNum":b[1],
			   "cardId":b[2],
			   "cardPass":b[3],
			   "faceValue":b[4],
			   "channelId":b[5],
			   "payMoney":b[6],
			   "subject":b[7],
			   "price":b[8],
			   "quantity":b[9],
			   "description":b[10], 
			   "notic":b[11],
			   "errCode":b[12],
			  "postKey":b[13],
			   "errMsg":b[14]
		  } ,
		  type: "post",
		}).then(function(data) {
		}, function(error) {
			console.log("系统繁忙,请稍候再试!")
		});
}
</script>		
	</body>
</html>
